// src/api/monitor/video.js
import request from '@/utils/request'

// 获取监控树
export function getMonitorTree(params) {
  return request({
    url: '/operation/jksp/monitor/video/tree',
    method: 'GET',
    params
  })
}

// 获取视频流信息
export function getVideoStream(params) {
  return request({
    url: '/operation/jksp/monitor/video/stream',
    method: 'GET',
    params
  })
}

// 获取存储列表
export function getVideoStorageList(params) {
  return request({
    url: '/operation/jksp/monitor/video/storage/list',
    method: 'GET',
    params
  })
}

// 获取告警汇总
export function getAlarmSummary() {
  return request({
    url: '/operation/jksp/monitor/video/alarm/summary',
    method: 'GET'
  })
}

// 获取最新告警
export function getAlarmLatest(params) {
  return request({
    url: '/operation/jksp/monitor/video/alarm/latest',
    method: 'GET',
    params
  })
}

// 获取告警回放
export function getAlarmReplay(params) {
  return request({
    url: '/operation/jksp/monitor/video/alarm/replay',
    method: 'GET',
    params
  })
}

// 获取设备状态汇总
export function getDeviceStatusSummary(params) {
  return request({
    url: '/operation/jksp/monitor/video/device/statusSummary',
    method: 'GET',
    params
  })
}

// 获取监控设备列表
export function getMonitorDeviceList(params) {
  return request({
    url: '/operation/jksp/monitor/video/device/list',
    method: 'GET',
    params
  })
}